package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 那个用户创建了供应商，供应商的所属门店就是该用户的所属门店。
 * </p>
 *
 * @author chenj
 * @since 2020-04-21
 */
public class Provider extends Model<Provider> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 所属门店
     */
    private String storeId;

    /**
     * 分类id
     */
    private String providerTypeId;

    /**
     * 初期欠款
     */
    private BigDecimal initAmt;

    /**
     * 编号
     */
    private String no;

    /**
     * 供应商名称
     */
    private String name;

    /**
     * 单位电话
     */
    private String unitTel;

    /**
     * 联系人
     */
    private String contacts;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 传真	
     */
    private String tax;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 邮编	
     */
    private String code;

    /**
     * 微信
     */
    private String wechat;

    /**
     * QQ
     */
    private String qq;

    /**
     * 地址
     */
    private String address;

    /**
     * 备注
     */
    private String remark;

    /**
     * 供应商状态 1正常 2停用
     */
    private Integer status;

    private Date time;

    /**
     * 是否为默认供应商
     */
    private Boolean def;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }
    public String getProviderTypeId() {
        return providerTypeId;
    }

    public void setProviderTypeId(String providerTypeId) {
        this.providerTypeId = providerTypeId;
    }
    public BigDecimal getInitAmt() {
        return initAmt;
    }

    public void setInitAmt(BigDecimal initAmt) {
        this.initAmt = initAmt;
    }
    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getUnitTel() {
        return unitTel;
    }

    public void setUnitTel(String unitTel) {
        this.unitTel = unitTel;
    }
    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getTax() {
        return tax;
    }

    public void setTax(String tax) {
        this.tax = tax;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }
    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public Boolean getDef() {
        return def;
    }

    public void setDef(Boolean def) {
        this.def = def;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Provider{" +
            "id=" + id +
            ", storeId=" + storeId +
            ", providerTypeId=" + providerTypeId +
            ", initAmt=" + initAmt +
            ", no=" + no +
            ", name=" + name +
            ", unitTel=" + unitTel +
            ", contacts=" + contacts +
            ", phone=" + phone +
            ", tax=" + tax +
            ", email=" + email +
            ", code=" + code +
            ", wechat=" + wechat +
            ", qq=" + qq +
            ", address=" + address +
            ", remark=" + remark +
            ", status=" + status +
            ", time=" + time +
            ", def=" + def +
            ", companyId=" + companyId +
        "}";
    }
}
